package cn.antsing;

import cn.antsing.bean.User;
import cn.antsing.bean.User1;
import cn.antsing.bean.User2;
import cn.antsing.bean.User3;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("cn.antsing");

        applicationContext.getBean(User.class).printApplicationContext();
        applicationContext.getBean(User1.class).printApplicationContext();
        applicationContext.getBean(User2.class).printApplicationContext();
        applicationContext.getBean(User3.class).printApplicationContext();

        applicationContext.close();
    }
}
